import request from '@/utils/request'
// 已关联设备列表
export function queryDevapi(query) {
    return request({
        url: '/device/queryDev',
        method: 'get',
        params: query
    })
}
// 添加设备
export function addDevapi(data) {
    return request({
        url: '/device/addDev',
        method: 'post',
        data
    })
}
// mqtt连接
export function mqttapi(data) {
    return request({
        url: '/device/mqtt',
        method: 'post',
        data
    })
}
// 加入心跳
export function addHeartBeatapi(data) {
    return request({
        url: '/device/addHeartBeat',
        method: 'post',
        data
    })
}
// 删除心跳
export function delHeartBeatapi(data) {
    return request({
        url: '/device/delHeartBeat',
        method: 'post',
        data
    })
}
// 鉴权人列表
export function getPerson(query) {
    return request({
        url: '/device/getPerson',
        method: 'get',
        params: query
    })
}
// 鉴权推送
export function accessPush(data) {
    return request({
        url: '/device/accessPush',
        method: 'post',
        data
    })
}
// 删除设备
export function del(data) {
    return request({
        url: '/device/del',
        method: 'post',
        data
    })
}
// 记录列表
export function recList(query) {
    return request({
        url: '/device/recList',
        method: 'get',
        params: query
    })
}
// 记录提交
export function uploadInfo(data) {
    return request({
        url: '/device/uploadInfo',
        method: 'post',
        data
    })
}
// 上报该记录
export function upload(data) {
    return request({
        url: '/device/upload',
        method: 'post',
        data
    })
}
// 下载人权限
export function getDownPerson(query) {
    return request({
        url: '/device/getDownPerson',
        method: 'get',
        params: query
    })
}